package com.kayt.cyberBar.cuser.business.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.common.ServerResponse;
import com.kayt.cyberBar.cuser.business.entity.po.BCyberBaseTaskReply;
import com.kayt.cyberBar.cuser.business.entity.vo.CyberBaseTaskQueryVO;
import com.kayt.cyberBar.cuser.business.entity.vo.CyberBaseTaskReplyVO;
import com.kayt.cyberBar.cuser.business.server.ICyberBaseTaskReplyServer;
import com.kayt.cyberBar.cuser.business.service.ICyberBaseTaskReplyService;

@Service("iCyberBaseTaskReplyService")
public class CyberBaseTaskReplyServiceImpl implements ICyberBaseTaskReplyService {

	@Autowired
	private ICyberBaseTaskReplyServer iCyberBaseTaskReplyServer;
	
	@Override
	public ServerResponse<CyberBaseTaskReplyVO> getReply(CyberBaseTaskReplyVO vo) {
		BCyberBaseTaskReply reply = this.iCyberBaseTaskReplyServer.get_reply(vo);
		ServerResponse<CyberBaseTaskReplyVO> rsp = this.iCyberBaseTaskReplyServer.assemble_result(reply);
		return rsp;
	}
	
	@Override
	public ServerResponse<PageData<CyberBaseTaskReplyVO>> getReplyList(CyberBaseTaskQueryVO query) {
		PageData<BCyberBaseTaskReply> replyData = this.iCyberBaseTaskReplyServer.get_reply_list(query);
		ServerResponse<PageData<CyberBaseTaskReplyVO>> rsp = this.iCyberBaseTaskReplyServer.assemble_result_list(replyData);
		return rsp;
	}
}
